#!/usr/bin/env python

"""make_docs - Make HTML docs for gummworld2/gamelib.
"""

from glob import glob
import os
import sys
import pydoc
import paths
if __name__ == '__main__':

##    help(pydoc)

    # write package index gamelib.html
    sys.path.append('gamelib/gummworld2')
    sys.argv[1:] = ['-w','gummworld2']
    pydoc.cli()
    
    # write module docs
    pydoc.writedocs('gamelib/gummworld2', pkgpath='gummworld2.')
